package com.imooc.mall.service;

import com.imooc.mall.exception.ImoocMallException;
import com.imooc.mall.model.pojo.User;

import java.security.NoSuchAlgorithmException;

public interface UserService {
    public User getUser();

    //注册的功能可以不用给用户返回他需要的其他参数
    public void register(String username, String password) throws ImoocMallException;

    //登录用户
    public User login(String username, String password) throws NoSuchAlgorithmException, ImoocMallException;

    //更新用户的签名
    public void update(User SessionUser,String signature) throws ImoocMallException;

    //管理员登录
    boolean checkAdminRole(User user);
}

